﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpContactEdit.aspx.cs" Inherits="Web.EmpContactEdit" %>

<!doctype html>
<html lang="en">
<head>
    <base target="_self" />
    <title>个人联系方式修改</title>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">
    <link href="yaml/core/base.min.css" rel="stylesheet" />
    <link href="yaml/forms/gray-theme.css" rel="stylesheet" />
    <link href="yaml/screen/typography.css" rel="stylesheet" />
    <!--[if lte IE 7]>
      <link rel="stylesheet" href="yaml/core/iehacks.min.css" type="text/css"/>
      <![endif]-->
    <!--[if lt IE 9]>
      <script src="yaml/lib/html5shiv/html5shiv.js"></script>
      <![endif]-->
    <script src="Scripts/jquery-1.7.min.js" type="text/javascript"></script>
    <script src="Scripts/easy_validator.pack.js" type="text/javascript"></script>
    <link href="Styles/validate.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        $(function () {
            $("[reg]").parents("td").prev().append("<font color='#ff0000'>*</font>");
            $("#btnSave").click(function () {
                var isSubmit = true;
                $("form").find("[reg],[url]:not([reg])").each(function () {
                    if (!validate($(this), this.tagName)) {
                        isSubmit = false;
                    }
                });
                if (!isSubmit) {
                    alert("请确认'红字或红框'处的输入正确!");
                    return false;
                }
                return true;
            });
            $("textarea").each(function () { this.style.height = this.scrollHeight + 16 + 'px'; });
            $("textarea").keydown(function () { this.style.height = this.scrollHeight + 16 + 'px'; });
        });
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server" class="ym-form ym-full">
    <table class="bordertable">
        <tr>
            <td width="10%">姓名</td>
            <td width="40%"><%=employee.Name%></td>
            <td width="10%">手机</td>
            <td><input id="Mobile" runat="server" title="不能为空" reg="."/></td>
        </tr>
        <tr>
            <td>分机</td>
            <td><input id="TelExt" runat="server"/></td>
            <td>短号</td>
            <td><input id="ShortNo" runat="server"/></td>
        </tr>
    </table>
<div style="text-align:right;margin-right:24px;margin-top:6px;">
    <asp:button runat="server" text="保存" id="btnSave" onclick="btnSave_Click"/>
    <input type=button value="关闭" onclick="window.close();"/>
</div>
    </form>
</body>
</html>